package com.gljx.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gljx.web.Entity.SubjectFileEntry;
import com.gljx.web.dao.SubjectFileEntryMapper;
import com.gljx.web.service.SubjectFileEntryService;

@Service
@Transactional
public class SubjectFileEntryServiceImpl implements SubjectFileEntryService {

	@Autowired
	private SubjectFileEntryMapper subjectFileEntryMapper;
	
	
	/**
	 * 根据fid查询记录
	 * @param fid 档案表id
	 * @return
	 */
	@Override
	public List<SubjectFileEntry> selSubjectFileEntryByFid(String fid) {
		// TODO Auto-generated method stub
		return subjectFileEntryMapper.selSubjectFileEntryByFid(fid);
	}

	/**
	 * 插入数据
	 */
	@Override
	public void insertSubjectFileEntry(SubjectFileEntry subjectFileEntry) {
		// TODO Auto-generated method stub
		subjectFileEntryMapper.insertSelective(subjectFileEntry);
	}

	@Override
	public void delSubjectFileEntryByPid(String[] fids) {
		// TODO Auto-generated method stub
		subjectFileEntryMapper.delSubjectFileEntryByPid(fids);
	}

}
